package com.kedi.healthcenter.service.impl;

import java.util.List;
import java.util.Map;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.kedi.healthcenter.read.dao.mapper.OtherSourceMapper;
import com.kedi.healthcenter.service.OtherSourceService;

/**
 * 
 *
 * @ClassName OtherSourceService
 * @author: 陈辽逊
 * @date: 2019/7/13 12:40
 */
@Service

public class OtherSourceServiceImpl implements OtherSourceService {

	@Autowired
	public OtherSourceMapper mapper;

	final static Logger logger = LoggerFactory.getLogger(OtherSourceServiceImpl.class);

	/**
	 * @return 返回一个数据对象
	 */
	@Override
	public List<Map<String, Object>> othersource() {
		try {
			List<Map<String, Object>> a = mapper.othersource();
			return a;
		} catch (Exception e) {
			e.printStackTrace();
			logger.error("查询失败");
			return null;
		}
	}

	@Override
	public List<Map<String, Object>> showSubscribe() {
		try {
			List<Map<String, Object>> a = mapper.showSubscribe();
			return a;
		} catch (Exception e) {
			e.printStackTrace();
			logger.error("查询失败");
			return null;
		}

	}

	@Override
	public List<Map<String, Object>> recoveryDetail() {
		return mapper.recoveryDetail();
	}

	@Override
	public List<Map<String, Object>> freemedical() {
		return mapper.freemedical();
	}

}
